package com.weir.myproject.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class MessageController {
	 @RequestMapping(value = "/show", method = RequestMethod.GET) 
	 public String show(String mid, Model model) {   
		 model.addAttribute("message", "hellworld"); // request属性传递包装  
		 model.addAttribute("mid", mid); // request属性传递包装   
		 return "template"; // 此处只返回一个路径， 该路径没有设置后缀，后缀默认是*.html 
	 } 	
}
